﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LinQ_DTO;
using DAO;
namespace BUS
{
    public class KhuyenMaiBUS
    {
        public List<shop_khuyenmai> LayTatCaKhuyenMai()
        {
            KhuyenMaiDAO Dao = new KhuyenMaiDAO();
            return Dao.LayTatCaKhuyenMai();
        }


        public shop_khuyenmai LayKhuyenMaiTheoMa(int Ma)
        {
            KhuyenMaiDAO Dao = new KhuyenMaiDAO();
            return Dao.LayKhuyenMaiTheoMa(Ma);
        }

        public void ThemKhuyenMai(shop_khuyenmai a)
        {
            KhuyenMaiDAO Dao = new KhuyenMaiDAO();
            Dao.ThemKhuyenMai(a);

        }

        public void XoaKhuyenMaiTheoMa(int Ma)
        {

            KhuyenMaiDAO Dao = new KhuyenMaiDAO();
            Dao.XoaKhuyenMaiTheoMa(Ma);


        }

        public void CapNhatKhuyenMai(shop_khuyenmai a)
        {

            KhuyenMaiDAO Dao = new KhuyenMaiDAO();
            Dao.CapNhatKhuyenMai(a);

        }
        /////////////////////////////////////////////////////////////////////////////////////////////

    }
}
